package com.goldgov.information.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.goldgov.information.service.ArticleRules;
import com.goldgov.information.service.ArticleRulesQuery;

@Mapper
public interface ArticleRulesDao {

	/**
	 * 获取文采集规则列表
	 * @param query
	 */
	List<ArticleRules> getArticleRulesList(@Param("query") ArticleRulesQuery query);
	
	/**
	 * 编辑规则
	 * @param articleRules
	 */
	void updateArticleRules(ArticleRules articleRules);
	
	/**
	 * 新增规则
	 * @param articleRules
	 */
	void addArticleRules(ArticleRules articleRules);
	
	/**
	 * 获取规则记录
	 * @param articleRules
	 */
	ArticleRules getArticleRulesByID(String rulesID);
}
